<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <title>
            <?php __('BBB: '); ?>
            <?php echo $title_for_layout; ?>
        </title>
        <?php
        echo $this->Html->meta('icon');

        echo $this->Html->css('cake.generic');
        
        echo $scripts_for_layout;
        ?>
        
    </head>
    <body>
        <div id="container">
            <div id="header">
                <h1><?php echo $this->Html->link(__('Better Budget Blotter', true), '/'); ?></h1>
            </div>
            <div id="content">

<?php echo $this->Session->flash(); ?>

                <?php echo $content_for_layout; ?>
                <div class='sidebar'>                
                <?php
                if (!empty($user['Group']['security_level']))
                    echo $this->element('sidebar');
                ?>
                </div>


            </div>
            <div id="footer">
<?php echo $this->element('footer'); ?>
            </div>
        </div>
<?php
if (!empty($user['Group']['security_level']))
    if ($user['Group']['security_level'] == 9)
        echo $this->element('sql_dump');
?>
    </body>
</html>